package com.dragon.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TestRunResponse {
    // 接口信息
    private String message;
    // 执行状态
    private Integer status; // 1 成功，0 失败
    // 输出结果
    private String output;

    public static TestRunResponse success(String output) {
        return new TestRunResponse("success", 1, output);
    }
    public static TestRunResponse error(String output) {
        return new TestRunResponse("error", 1, output);
    }
}
